package com.ibeeking.found.common.enums;

public enum IndustryTypeEnum {
    TEMPLATE_TYPE_FOUND("found", "基础平台"),
    TEMPLATE_TYPE_ECOMMERCE("mall", "电商平台"),
    TEMPLATE_TYPE_MANUFACTORE("mdi", "制造业"),
    TEMPLATE_TYPE_MEI("mei", "建工行业"),
    TEMPLATE_TYPE_VDMS("vdms", "汽车4S"),
    TEMPLATE_TYPE_VMALL("vmall", "汽车电商"),
    TEMPLATE_TYPE_FPI("fpi", "中央厨房"),
    TEMPLATE_TYPE_EPI("epi", "环保行业"),
    TEMPLATE_TYPE_DHI("dhi", "数字健康"),
    TEMPLATE_TYPE_MHI("mhi", "医美行业"),
    TEMPLATE_TYPE_AFI("afi", "农林行业"),
    TEMPLATE_TYPE_DFI("dfi", "数字金融"),
    TEMPLATE_TYPE_EDU("edu", "教育行业"),
    TEMPLATE_TYPE_TOU("tou", "旅游行业"),
    ;

    private String code;
    private String name;

    IndustryTypeEnum(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    public static String getNameByCode(String code) {
        for (IndustryTypeEnum enumObj : values()) {
            if (enumObj.getCode().equals(code)) {
                return enumObj.getName();
            }
        }
        return null;
    }
}
